<?php
/**
 * Created by PhpStorm.
 * User: yellow
 * Date: 2019/4/24
 * Time: 11:15
 */

namespace app\common\model;


use think\Model;

class Ad extends Model{
    public function getCreateTimeAttr($value){
        return date('Y-m-d H:i', $value);
    }

    public function getCateIdAttr($value){
        $arr = ['首页轮播图','微心愿','积分兑换','捐赠'];
        return $arr[$value-1];
    }
}